"use strict";
const { Model } = require("sequelize");
module.exports = (sequelize, DataTypes) => {
  class Gg_event extends Model {
    /**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
    static associate(models) {
      // define association here
    }
  }
  Gg_event.init(
    {
      user_name: DataTypes.STRING,
      event_type: DataTypes.STRING,
      event_addr: DataTypes.STRING,
      event_mark: DataTypes.STRING,
      event_time: DataTypes.DATE,
      event_describe: DataTypes.TEXT,
      event_status: {
        defaultValue: 0,
        type: DataTypes.INTEGER,
      },
    },
    {
      sequelize,
      modelName: "Gg_event",
    }
  );
  return Gg_event;
};
